package cn.com.dstz.data.post;

import org.springframework.core.task.TaskExecutor;

public class PostTask{

	private TaskExecutor taskExecutor;
	
	public PostTask( TaskExecutor taskExecutor ){
		this.taskExecutor = taskExecutor;
	}
	
	public void addTask( Post post ){
		taskExecutor.execute( post );
	}
	
}
